package com.cash.loan.modular.cash.service;

import com.cash.loan.common.result.PageResult;
import com.cash.loan.modular.cash.transfer.vo.ProductDetailMapVo;
import com.cash.loan.modular.cash.transfer.vo.ProductListVo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 * @Date 2018-07-09 10:48
 */
public interface ProductService {

    /**
     * 产品详情
     * @param productId
     * @return
     */
    ProductDetailMapVo productDetail(Integer productId);

    /**
     * 分页查询产品列表
     * @param currentPage
     * @param pageSize
     * @param minLoanTerm
     * @param maxLoanTerm
     * @param minLoanAmount
     * @param maxLoanAmount
     * @param orderBy
     * @param cateId
     * @param uiType
     * @return
     */
    PageResult<ProductListVo> getProductPageList(Integer currentPage, Integer pageSize, Integer minLoanTerm, Integer maxLoanTerm,
                                                 BigDecimal minLoanAmount, BigDecimal maxLoanAmount, String orderBy,Integer cateId,Integer uiType);

    /**
     * 获取申请页面地址
     * @param productId
     * @return
     */
    String getApplyPageUrl(Integer productId);

    /**
     * 得到个人推荐产品信息
     * @return
     */
    List<Map<String,Object>> getRecommendProduct();
}
